// ==UserScript==
// @name         Bitbacket jump to Parent Ticket
// @namespace    http://tampermonkey.net/
// @version      2024-05-11
// @description  try to take over the world!
// @author       You
// @match        https://bitbucket.shinetechmagento.com/projects/HP/repos/stellar-indirect/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=shinetechmagento.com
// @grant        none
// ==/UserScript==

var res = jQuery('.pull-request-metadata .ref-lozenge .ref-lozenge-content.ref-lozenge-content:eq(1) span').html().match(/\/(?<id>HSI-\d+)/);
jQuery('.pull-request-metadata .ref-lozenge .ref-lozenge-content:eq(1)').html('<a target="_bank" href="https://jira.shinetechmagento.com/browse/' + res.groups.id + '">' + res.input +'</a>');